package com.yanqu.road.entity.activity.shushan.config;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Description
 * @Author cwq
 * @Data 2022/3/8 14:26
 */
@FieldTypeAnnotation(tableName = "t_s_activity_shushan_build")
public class ShuShanBuildConfig {

    @FieldTypeAnnotation(desc = "活动ID", update = true, select = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "id", update = true)
    private int id;
    @FieldTypeAnnotation(desc = "type")
    private int type;
    @FieldTypeAnnotation(desc = "level")
    private int level;
    @FieldTypeAnnotation(desc = "upgradCost")
    private String upgradCost;
    @FieldTypeAnnotation(desc = "maxStudent")
    private int maxStudent;
    @FieldTypeAnnotation(desc = "unlock")
    private int unlock;
    @FieldTypeAnnotation(desc = "param")
    private String param;

    /**
     * 随机权重  (type = 2 才有)
     */
    private Map<Integer, Integer> weightMap = new HashMap<>();

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getUpgradCost() {
        return upgradCost;
    }

    public void setUpgradCost(String upgradCost) {
        this.upgradCost = upgradCost;
    }

    public int getMaxStudent() {
        return maxStudent;
    }

    public void setMaxStudent(int maxStudent) {
        this.maxStudent = maxStudent;
    }

    public int getUnlock() {
        return unlock;
    }

    public void setUnlock(int unlock) {
        this.unlock = unlock;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public Map<Integer, Integer> getWeightMap() {
        return weightMap;
    }
}
